#pwd
#  /pubx/8cc-malloc-analyze
#lldb   --source  8cc-lldb-py/malloc_print_py.ls  --   /pubx/8cc/8cc -c  mini_main.c




script lldb.debugger.SetAsync(False)

breakpoint set --name __GI___libc_malloc --condition 'bytes > 128'

breakpoint command add --script-type python 1
# def function (frame, bp_loc, internal_dict):
    # """frame: the lldb.SBFrame for the location at which you stopped
       # bp_loc: an lldb.SBBreakpointLocation for the breakpoint location information
       # internal_dict: an LLDB support object not to be used"""
# printf ("alloc_mem_size:%d, ",bytes)
import time
st=time.time()
print("curentTime:%f" % st)
thread = frame.GetThread()
process = thread.GetProcess()
# lldb.debugger.SetAsync(True)
thread.StepOut()
process.Continue()
#lldb和gdb问题现象一样: Continue无效，Contine后依然停了，原因估计是 StepOut 是在加了个新断点, 而Continue清除的是1号断点
# lldb.debugger.SetAsync(False)
DONE




run

# quit